package cn.pconline.autoclub.entity;

import java.util.Date;

import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;

@Entity(tableName = "ac_cloud_club_log", logChange = true)
public class CloudLog {

	@Id
    @Column(name = "cloud_log_id")
	private long cloudLogId;	//融云日志id
	@Column(name = "type")
	private int type;			//类型，1 加入融云，2 退出融云
	@Column(name = "user_id")
	private long userId;		//用户id
	@Column(name = "club_id")
	private long clubId;		//车友会id
	@Column(name = "club_name")
	private String clubName;   //车友会名称
	@Column(name = "create_at")
	private Date createAt;		//创建时间
	@Column(name = "update_at")
	private Date updateAt;		//更新时间
	@Column(name = "status")
	private int status;		//状态，-1>发送失败 ，0>未发送，1>发送完成
	/**加入融云**/
	public static final int JOIN_CLOUD = 1;
	/**退出融云**/
	public static final int QUIT_CLOUD = 2;
	/**发送失败**/
	public static final int FAIL_SEND = -1;
	/**未发送**/
	public static final int NOT_SEND = 0;
	/**发送成功**/
	public static final int SUCCESS_SEND = 1;
	public long getCloudLogId() {
		return cloudLogId;
	}
	public void setCloudLogId(long cloudLogId) {
		this.cloudLogId = cloudLogId;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public long getClubId() {
		return clubId;
	}
	public void setClubId(long clubId) {
		this.clubId = clubId;
	}
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}
	public Date getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getClubName() {
		return clubName;
	}
	public void setClubName(String clubName) {
		this.clubName = clubName;
	}
	
}
